package com.tongzhan.entity.religion;

import com.tongzhan.annotation.PrimaryKey;
import com.tongzhan.base.BaseModel;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.time.LocalDateTime;

/**
 * 场所详情实体类
 * @author wn
 * @date 2020/07/16
 */
@Data
@Document(collection = "SiteInfo")
public class  SiteInfo extends BaseModel {
    @PrimaryKey
    @Field("SiteInfoCode")
    private String siteInfoCode;//场所详细信息编码
    @Field("SiteCode")
    private String siteCode;
    @Field("SiteName")
    private String siteName;
    @Field("ReligionCode")
    private String religionCode;
    @Field("ReligionName")
    private String religionName;
    @Field("StreetCode")
    private String streetCode;
    @Field("StreetName")
    private String streetName;
    @Field("VillageCode")
    private String villageCode;
    @Field("VillageName")
    private String VillageName;
    @Field("BeliefType")
    private String beliefType;//信仰类型
    @Field("BuildYears")
    private String buildYears;//建造年代
    @Field("HistoryEvolution")
    private String historyEvolution;//历史沿革
    @Field("Believers")
    private String believers;//主要信奉对象
    @Field("Address")
    private String address;//场所详细地址
    @Field("Type")
    private Integer type;//场所类型 0-宗教场所 1-民间信仰点
    @Field("Picture")
    private String picture;//场所图片
    @Field("ImageMap")
    private String imageMap;//影像图
    @Field("CreditCode")
    private String creditCode;//统一社会信用代码
    @Field("PersonName")
    private String personName;//负责人
    @Field("PersonTelephone")
    private String personTelephone;//负责人联系电话
    @Field("LandCertificate")
    private String landCertificate;//《土地证》（图片）
    @Field("OwnershipCertificate")
    private String ownershipCertificate;//《房产证》（图片）
    @Field("PlaneFigure")
    private String planeFigure;//现状平面图
    @Field("Jurisdiction")
    private String jurisdiction;//管辖状态
    @Field("RegistrationNo")
    private String registrationNo;//登记证号
    @Field("Sort")
    private Integer sort;//排序，值越靠近1表明场所越好，排序靠前
    @Field("CreateTime")
    private LocalDateTime createTime;//创建时间
}
